#pragma once
#include <SFML\Graphics.hpp>
#include "Player.h"
#include <Windows.h>
#include <NuiApi.h>

class GameMenu
{
public:
	GameMenu();
	~GameMenu();

	 void Initialize(sf::RenderWindow* window);
	 void Update();
	 void Render();
	 void Cleanup();
	 bool getGameSelected(){	if(m_gameSelected == true && hitL == true || m_gameSelected == true && hitR == true){	return true;	}else{	return false;		}	};
	 bool getScoreSelected(){	if(m_scoreSelected == true && hitL == true || m_scoreSelected == true && hitR == true){	return true;	}else{	return false;		}	};
private:
	float m_deltaTime;
	sf::Clock*	m_clock;

	bool m_gameSelected;
	bool m_scoreSelected;

	NUI_SKELETON_FRAME ourFrame;
	float centerPosX;
	bool gobackleft;
	bool gobackright;
	bool clockStartR;
	float timerR;
	bool hitR;
	bool clockStartL;
	float timerL;
	bool hitL;
	bool missedR;
	bool missedL;

	float leftHandPosZ;
	float rightHandPosZ;

	float leftShoulderPosZ;
	float rightShoulderPosZ;

	sf::RenderWindow* m_renderWindow;
	sf::Sprite* m_backgroundSprite;
	sf::Texture* m_backgroundTexture;
	sf::Sprite* m_gameSelectSprite;
	sf::Texture* m_gameSelectTexture;
	sf::Sprite* m_scoreSelectSprite;
	sf::Texture* m_scoreSelectTexture;
	sf::Sprite* m_selecterSprite;
	sf::Texture* m_selecterTexture;

	bool joystickConnected;
	unsigned int buttonCount;
	bool hasZ;
	float joyX;
	float joyY;
	float joyZ;
};

